<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="serviceDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='serviceDetail.heading'/>"/>
</head>

<s:form id="serviceForm" action="saveService" method="post" validate="true">
    <li style="display: none">
        <s:hidden key="service.id"/>
    </li>
    <s:textfield key="service.binary" required="false" maxlength="255" cssClass="text medium"/>
    <s:textfield key="service.category" required="false" maxlength="255" cssClass="text medium"/>
    <s:textfield key="service.description" required="false" maxlength="65535" cssClass="text medium"/>
    <s:textfield key="service.difficulty" required="true" maxlength="255" cssClass="text medium"/>
    <s:textfield key="service.infoCollectFilePath" required="false" maxlength="255" cssClass="text medium"/>
    <s:textfield key="service.maxprice" required="true" maxlength="255" cssClass="text medium"/>
    <s:textfield key="service.minprice" required="true" maxlength="255" cssClass="text medium"/>
    <s:textfield key="service.modifyperiod" required="true" maxlength="255" cssClass="text medium"/>
    <s:textfield key="service.pay" required="true" maxlength="255" cssClass="text medium"/>
    <s:textfield key="service.period" required="true" maxlength="255" cssClass="text medium"/>
    <s:textfield key="service.point" required="true" maxlength="255" cssClass="text medium"/>
    <s:textfield key="service.price" required="true" maxlength="255" cssClass="text medium"/>
    <s:textfield key="service.process" required="false" maxlength="65535" cssClass="text medium"/>
    <s:textfield key="service.servicename" required="true" maxlength="255" cssClass="text medium"/>
    <s:textfield key="service.servicetype" required="true" maxlength="255" cssClass="text medium"/>
    <s:textfield key="service.stepprice" required="false" maxlength="255" cssClass="text medium"/>

    <li class="buttonBar bottom">
        <s:submit cssClass="button" method="save" key="button.save" theme="simple"/>
        <c:if test="${not empty service.id}">
            <s:submit cssClass="button" method="delete" key="button.delete"
                onclick="return confirmDelete('Service')" theme="simple"/>
        </c:if>
        <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple"/>
    </li>
</s:form>

<script type="text/javascript">
    Form.focusFirstElement($("serviceForm"));
</script>
